cmake_minimum_required(VERSION 3.8)
project(dir_prop_set)

define_property(DIRECTORY PROPERTY my_dir_prop BRIEF_DOCS "dir docs" FULL_DOCS "dir full doc")
get_property(var1 DIRECTORY PROPERTY my_dir_prop SET)
message(STATUS "my_dir_prop is set? = ${var1}")

set_property(DIRECTORY APPEND PROPERTY my_dir_prop "my_dir_prop value")
get_property(var2 DIRECTORY PROPERTY my_dir_prop SET)
message(STATUS "my_dir_prop is set? = ${var2}")

set_property(DIRECTORY APPEND PROPERTY my_dir_prop2 "my_dir_prop2 value")
get_property(var3 DIRECTORY PROPERTY my_dir_prop2 SET)
message(STATUS "my_dir_prop2 is set? = ${var3}")

set_directory_properties(PROPERTIES my_dir_prop3 "value1" my_dir_prop4 "value2")
get_property(var4 DIRECTORY PROPERTY my_dir_prop3 SET)
message(STATUS "my_dir_prop3 is set? = ${var4}")
get_property(var5 DIRECTORY PROPERTY my_dir_prop4 SET)
message(STATUS "my_dir_prop4 is set? = ${var5}")

